﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace MvcApplication2.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "修改此模板以快速启动你的 ASP.NET MVC 应用程序。";

            return View();
        } 
        public ActionResult Static(string File)
        {
            return View(File);
        }
         

        public ActionResult Help()
        {
            return View();
        }

        public bool Route()
        {
            bool bol = !RouteTable.Routes.RouteExistingFiles;
            RouteTable.Routes.RouteExistingFiles = bol;
            return bol;
        }

    }
}
